<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <js file="__PUBLIC__/Js/jquery-1.7.2.min.js"/>
    <js file="__PUBLIC__/Js/ghulam.js"/>
</head>
<body >
<div class="container-fluid" >
    <div class="row">
        <h3 class="sub-header">会员员列表</h3>
        <div class="col-sm-9  " style="width: 100%">
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <td colspan="7">
                            <form action="{:U(GROUP_NAME.'/Member/index')}" method="post" >
                                <div class="control-group">

                                    <div class="controls">
                                        <div class="input-append">
                                            <a href="{:U(GROUP_NAME.'/Member/addmember')}" class="btn btn-primary">添加会员</a>
                                            <input style="height: 33px;width: 200px;" class="span2 text" placeholder="输入会员姓名" type="text" name="mem_name">
                                            <input type="submit" class="btn btn-success"/>
                                        </div>
                                    </div>

                                </div>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <th>ID</th>
                        <th>登陆名称</th>
                        <th>真实姓名</th>
                        <th>工号</th>
                        <th>联系</th>
                        <th>邮箱</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="members" item="v">
                        <tr>
                            <td>{$v.id}</td>
                            <td>{$v.mem_name}</td>
                            <td>{$v.real_name}</td>
                            <td>{$v.mem_number}</td>
                            <td>{$v.mem_phone}</td>
                            <td>{$v.mem_email}</td>
                            <td>
                                <if condition="$v['mem_status']"><span class="label label-primary">已审核<else/>
                                    <span class="label label-danger">待审核</span>
                                    <a href="{:U(GROUP_NAME.'/Member/on_status', array('rid' => $v['id'],'status'=>1))}" class="btn button-primary btn-xs">审核</a>
                                </if>
                            </td>
                            <td>
                                <div class="btn-group">

                                    <a  href="{:U(GROUP_NAME.'/Member/editmember', array('rid' => $v['id']))}" class="btn button-royal btn-xs">编辑信息</a>
                                    <a  href="{:U(GROUP_NAME.'/Member/editpwd', array('rid' => $v['id']))}" class="btn button-highlight btn-xs">修改密码</a>
                                </div>
                                <div class="btn-group">
                                    <if condition="$v['lock']">
                                        <a href="{:U(GROUP_NAME.'/Member/on_off_lock', array('rid' => $v['id'],'status'=>1))}" class="btn btn-default btn-xs">锁定</a>
                                        <else/>

                                        <a href="{:U(GROUP_NAME.'/Member/on_off_lock', array('rid' => $v['id'],'status'=>0))}" class="btn button-primary btn-xs">解锁</a>
                                    </if>
                                    <a onclick="return del();" href="{:U(GROUP_NAME.'/Member/deletemember', array('rid' => $v['id']))}" class="btn btn-danger btn-xs">删除</a>
                                </div>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                    <tr><td colspan="8">
                        {$page}
                    </td></tr>
                </table>
            </div>
        </div>
    </div>
</div>
<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/bootstrap/css/button.css" rel="stylesheet">
<script src="__PUBLIC__/bootstrap/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.js"></script>
</body>
</html>